home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / lincoln.h < prev    next >
C/C++ Source or Header  |  1992-02-25  |  2KB  |  86 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. /*    Winged edge data structure represented in Lincoln file format
  13.  
  14.  
  15.         \               /     
  16.          \             /
  17.           \           /
  18.            \         /
  19.          e00\       /e10
  20.              \     /
  21.               \   /
  22.             v0
  23.             |
  24.             |
  25.             |
  26.         f0        |e                 f1
  27.             |
  28.             |
  29.             |
  30.             |
  31.             v1
  32.                        / \
  33.                       /   \
  34.                   e01/     \e11
  35.                     /       \
  36.                    /         \
  37.                   /           \
  38.  
  39. */
  40.  
  41. #define BUFSIZE 256
  42.  
  43. struct position  {
  44.     float x,y,z,w;
  45.         };
  46.  
  47. struct equation    {
  48.     float x,y,z,w;
  49.         };
  50.  
  51. /*
  52. struct vertexchars    {  information will be stored here
  53.     to give the characteristics of an vertex (e.g. pointtype, color,...) }
  54. */
  55.  
  56. struct vertex    {    
  57.     struct position pos;
  58.     struct edge *e;
  59.     int order;
  60. /*    struct vertexchars chars;        */
  61.         };
  62.  
  63. /*
  64. struct edgechars    {  information will be stored here
  65.     to give the characteristics of an edge (e.g. thickness, color,...) }
  66. */
  67.  
  68. struct edge    {
  69.     struct vertex *v0,*v1;
  70.     struct face   *f0,*f1;
  71.     struct edge   *e00,*e01,*e10,*e11;
  72. /*    struct edgechars chars;            */
  73.         };
  74.  
  75. struct facechars    {  
  76.     int color;    };
  77.  
  78. struct face    {    
  79.     struct equation eqn;
  80.     struct edge *e;
  81.     int order;
  82.     struct facechars chars;            
  83.         };
  84.  
  85. struct data    { char title[BUFSIZE]; int dim, nvertices, nedges, nfaces, nobjects ;} ;
  86.